using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using FastReport;
using FastReport.Data;

namespace CJGL
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // create a new empty report and attach it to the designer
            Report report = new Report();
            report.Load(@"print2.frx");
            designerControl1.Report = report;

            // restore the design layout. Without this code, the designer tool windows will be unavailable
            designerControl1.RefreshLayout();
        }

        private void designerControl1_UIStateChanged(object sender, EventArgs e)
        {
            // update Enabled state of our buttons
            btnSave.Enabled = designerControl1.cmdSave.Enabled;

        }


        private void btnSave_Click(object sender, EventArgs e)
        {
            designerControl1.cmdSave.Invoke();
        }

    }
}